package bdqn.sl.bolg_sl.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 路由控制器
 * 2020/04/24 16:24
 * 佘莉
 */
@Controller
public class RouteController {

    //博客首页
    @GetMapping(value = {"/","index"})
    public String toIndex(){
      return "index";
    }

    //标签页
    @GetMapping("/tags")
    public String toTags(){
        return "tags";
    }

    //分类页
    @GetMapping("/types")
    public String toTypes(){
        return "types";
    }

    //关于我
    @GetMapping("/about")
    public String toAbout(){
        return "about";
    }

    //归档
    @GetMapping("/archives")
    public String toArchives(){
        return "archives";
    }

   //管理员页面
    @GetMapping("/blogs")
    public String toBlogs(){
        return "admin/blogs";
    }

}

